@charset "utf-8";
.top-bar {
  background: #333;
  color: #fff;
  height: 40px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 20;
}
.top-bar .top-box {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  line-height: 20px;
}
.top-bar .top-box .text-link {
  padding: 10px 0;
}
.top-bar .top-box .top-box-left {
  float: left;
  height: 100%;
}
.top-bar .top-box .top-box-left > a {
  display: inline-block;
  color: #fff;
  margin-right: 25px;
  text-align: center;
}
.top-bar .top-box .top-box-right {
  float: right;
  height: 100%;
}
.top-bar .top-box .top-box-right .login-box {
  height: 100%;
}
.top-bar .top-box .top-box-right div {
  display: inline-block;
  cursor: pointer;
  margin-left: 25px;
}
.top-bar .top-box .top-box-right .cart {
  margin-left: 0;
  position: relative;
}
.top-bar .top-box .top-box-right .cart .cart-detail-box {
  display: none;
  margin-top: 5px;
  position: absolute;
  width: 260px;
  height: 70px;
  background: white;
  bottom: -74px;
  line-height: 70px;
  right: 0;
  box-shadow: 0 1px 3px #666;
}
.top-bar .top-box .top-box-right .cart .cart-detail-box .text-link {
  position: absolute;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #fff;
  top: -40px;
  right: 0;
}
.top-bar .top-box .top-box-right .cart .cart-detail-box .text-link i {
  position: absolute;
  top: -15px;
  right: 12px;
  color: #666;
}
.top-bar .top-box .top-box-right .cart .cart-detail-box .cart-box-text {
  color: #666;
}
.top-bar .top-box .top-box-right .cart a {
  display: inline-block;
  text-align: center;
  width: 44px;
  height: 40px;
  padding: 9px 0;
  margin-left: 25px;
}
.top-bar .top-box .top-box-right .cart i {
  color: white;
  font-size: 20px;
}
